include ../Makefile.shared

define PROJ_pll
  SOURCES = pll_impl.c pll_stubs.c pll.ml 
  RESULT = pll
endef
export PROJ_pll

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = pll
endif

export LIBS=str ext mn

interface:
	ocamlc -I ../ext -I ../mn -i pll.ml > pll.mli

# Default target to use
all: ncl
	cp pll.cmi pll.cmxa libpll_stubs.a pll.a $(SRCLIBDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
